import { createLoadingComponent } from 'element-plus/es/components/loading/src/loading'
import { ElMessage, ElMessageBox } from 'element-plus'
import { createRouter, createWebHashHistory } from 'vue-router'
const baseTitle = ''/* 基础标题 */
const routesWithoutAuth = [
    {
        path:"/",
        name:'home',
        component:()=>import('../views/home.vue'),
        meta:{title:'首页'+baseTitle,requireAuth:false}
    },
]
const routesWithAuth = []
//创建路由函数
const router = createRouter({
    history:createWebHashHistory(),
    routes:[...routesWithoutAuth, ...routesWithAuth]
})

// 全局状态
// import { useAuthStore } from '@/stores'



/* 路由前置守卫 */
// router.beforeEach((to,from,next)=>{
    
// })
export default router;